package com.eminem.service;


import com.eminem.model.User;
import com.eminem.model.UserFocus;

import java.util.List;
import java.util.Map;

public interface UserService {

    /**
     * 用过用户名来查询
     * @param username
     * @return
     */
    User Usercheck(String username);

    User findEmail(String email);

    boolean cheackNameorEmail(String email, String username);

    boolean addUser(User user);

    String sendEmailCode(String email);

    boolean resetPassword(String email, String passwoed);

    Map<String, Object> findUserInfo(String username);

    Map<String, Object> getUserInfo(String id);

    void updateLoginTime(Integer id);

    void updateRegisterTime(Integer id);

    List<Map<String,Object>> getUserList(String userId,int currentPage, String names);


    UserFocus getFollowUser(String userId, String ufId);

    boolean followUser(String userId, String ufId);


    long getUserCount(String name);

    boolean unfollowUser(Integer id);

    void uploadImg(String userId,String s);

    List<Map<String, Object>> getUserName(String userId,int currentPage);

    long getFollowCount(String userId);
}
